home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1995 March / PC Plus Super CD (Issue 101) (March 1995).iso / doscim / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1994-06-27  |  21.1 KB  |  919 lines

  1. /*
  2.  *
  3.  *  Copyright (c) 1990-1992
  4.  *  by CompuServe Incorporated, Columbus, Ohio
  5.  *
  6.  *  The information in this software  is  subject  to  change  without
  7.  *  notice  and  should not be construed as a commitment by CompuServe
  8.  *  Incorporated.
  9.  *
  10.  */
  11.  
  12. @DefineProject
  13.     @Name       = "CompuServe Information Manager"
  14.     @Version    = "2.2.3"
  15.     @Subdir     = "\\CSERVE\\"
  16.     @OutDrive   = C
  17. @EndProject
  18.  
  19. @DefineVars
  20.     @QString @OEMBatchName = ""
  21.     @QString @Online = ""
  22. @EndVars
  23.  
  24. :Start
  25.  
  26. @Display
  27.     @scrCls
  28.  
  29.           @Name INSTALLATION 
  30.  
  31.     Welcome to CompuServe.  This program will install version @Version
  32.     of the @Name.
  33.  
  34.     You can stop the installation at any time by pressing the ESC key.
  35.  
  36.     @scrPause
  37.  
  38. @EndDisplay
  39.  
  40.  
  41. :Install
  42.  
  43. @Call HardDisk
  44.  
  45. @call GetInstallDisk
  46.  
  47. @Display
  48.     @scrCls
  49. @EndDisplay
  50.  
  51. @Position 2 4
  52.  
  53. @DefineDisk
  54.     @Label = "Original Diskette 1"
  55.  
  56.     @BeginLib CIM01.LIB
  57.  
  58.         @if ("@Online" == "")
  59.  
  60.         @File NEWUTIL.EXE
  61.                 @OUT5M doscim\\NEWUTIL.EXE
  62.     
  63.             @File TUTORIAL.BAT 
  64.                 @OUT5M doscim\\TUTORIAL.BAT
  65.     
  66.             @File COLOR.BAT 
  67.                 @OUT5M doscim\\COLOR.BAT
  68.  
  69.         @Endif
  70.  
  71.     @File CIM.MNU   
  72.         @OUT5M doscim\\NEWCIM.MNU
  73.  
  74.     @File CIM.ICO   
  75.         @OUT5M doscim\\CIM.ICO
  76.  
  77.     @File CIM.PIF
  78.         @OUT5M doscim\\CIM.PIF
  79.  
  80.     @File DOSCIM.GRP
  81.         @OUT5M doscim\\DOSCIM.GRP
  82.  
  83.     @File README.EXE
  84.         @OUT5M doscim\\README.EXE
  85.  
  86.     /* Don't overwrite an existing quotes.dat file */
  87.     @If (@Exists "@OutDrive:@SubDir\\support\\QUOTES.DAT")
  88.     @Else
  89.         @File QUOTES.DAT
  90.         @OUT5M support\\QUOTES.DAT
  91.     @Endif
  92.  
  93.     @If (20 [! @Option)
  94.         /* Copy the new version Favorites without clobbering */
  95.         /* the old one */
  96.  
  97.         @File FAVORITE.DAT
  98.         @OUT5M support\\FAVORITE.DAN
  99.     @Else
  100.         /* ensure that we write out Favorites if it does not exist */
  101.  
  102.         @If (@Exists "@OutDrive:@SubDir\\support\\FAVORITE.DAT")
  103.         @Else
  104.         @File FAVORITE.DAT
  105.             @OUT5M support\\FAVORITE.DAT
  106.         @Endif
  107.     @Endif
  108.  
  109.     @if ("@Online" == "")
  110.     @EndLib
  111.     @endif
  112. @If (@DiskSize @InDrive < 500000) 
  113. @EndDisk
  114.  
  115. @DefineDisk
  116.     @Label = "Original Diskette 2"
  117. @Endif
  118.  
  119.     @if ("@Online" == "")
  120.     @BeginLib CIM02.LIB    
  121.     @endif
  122.  
  123.         @if ("@Online" == "")
  124.  
  125.             @If (31 [! @Option)
  126.             @File SIGNUP.EXE
  127.             @Out5M doscim\\signup.exe
  128.             
  129.             @File signup.ICO   
  130.             @OUT5M doscim\\signup.ICO
  131.             
  132.             @File signup.PIF
  133.             @OUT5M doscim\\signup.PIF
  134.             
  135.             @File DOSCIMS.GRP
  136.             @OUT5M doscim\\DOSCIM.GRP
  137.             
  138.             @Endif
  139.  
  140.         @Endif
  141.  
  142.     @File scripts.exe
  143.         @Out5M scripts\\scripts.exe
  144.  
  145.         @Endif
  146.         
  147.         @File MOVECIM.EXE
  148.             @Out5M doscim\MOVECIM.EXE
  149.         
  150.         @File MAKEINI.EXE
  151.             @Out5M MAKCMINI.EXE
  152.         
  153.         @File CIM.1 
  154.             @OUT5M doscim\\NEWCIM.EXE
  155.  
  156.     @if ("@Online" == "")
  157.     @EndLib
  158.     @endif
  159.  
  160. @If (@DiskSize @InDrive < 1200000) 
  161.   @EndDisk
  162.   /* are we installing from 360s or 720s? */
  163.   @If (@DiskSize @InDrive < 500000) 
  164.       @DefineDisk
  165.       @Label = "Original Diskette 3"
  166.   @Else
  167.       @DefineDisk
  168.       @Label = "Original Diskette 2"
  169.   @Endif
  170. @Endif
  171.  
  172.     @if ("@Online" == "")
  173.     @BeginLib CIM03.LIB    
  174.     @endif
  175.  
  176.     @File CIM.2 
  177.         @AppendTo doscim\\NEWCIM.EXE 
  178.  
  179.     @EndLib
  180.  
  181. @EndDisk
  182.  
  183. @Finish
  184.  
  185. @if ("@Online" != "")
  186.     @If (@Exists "@InputDir\\cim01.lib")
  187.         @System "del @InputDir\\cim01.lib"
  188.     @EndIf          
  189.     @If (@Exists "@InputDir\\install.exe")
  190.         @System "del @InputDir\\install.exe"
  191.     @EndIf          
  192.     @If (@Exists "@InputDir\\install.dat")
  193.         @System "del @InputDir\\install.dat"
  194.     @EndIf          
  195.     @If (@Exists "@InputDir\\disk.id")
  196.         @System "del @InputDir\\disk.id"
  197.     @EndIf          
  198.     @If (@Exists "@InputDir\\readme.now")
  199.         @System "del @InputDir\\readme.now"
  200.     @EndIf          
  201. @endif
  202.  
  203.   /* Check if we need to write out a special batch file to invoke CIM */
  204.  
  205. @if ("@OEMBatchName" != "")
  206.   @ChDrive @OutDrive
  207.   @ChDir "\\"
  208.   @System "echo \@echo off > @OEMBatchName"
  209.   @System "echo rem NOTE:  This batch file needs be located >> @OEMBatchName"
  210.   @System "echo rem        in a directory specified by your >> @OEMBatchName"
  211.   @System "echo rem        PATH environment variable to work. >> @OEMBatchName"
  212.   @System "echo @OutDrive: >> @OEMBatchName"
  213.   @System "echo CD @Subdir\\doscim >> @OEMBatchName"
  214.   @System "echo CIM >> @OEMBatchName"
  215. @Endif
  216.  
  217.  
  218.   /* Write out a batch file to delete the old version of CIM */
  219.  
  220. @ChDrive @OutDrive
  221. @ChDir "@SubDir\\scripts"
  222.  
  223. /* preserve the old connect script files */
  224.  
  225. @If (@Exists "CONNECT.SCR")
  226.     @If (@Exists "CONNECT.ols")
  227.         @System "del *.ols"
  228.     @EndIf          
  229.  
  230.     @System "ren *.scr *.ols"
  231. @EndIf      
  232.  
  233. /* preserve the old modem database file */
  234.  
  235. @If (@Exists "MODEM.DB")
  236.     @If (@Exists "MODEM.ODB")
  237.         @System "del modem.odb"
  238.     @EndIf          
  239.  
  240.     @System "ren modem.db modem.odb"
  241. @EndIf
  242.  
  243. /* unpack scripts and modem database */
  244. @Display
  245.  
  246.     Installation in progress ...
  247. @EndDisplay
  248.  
  249. @System "scripts > NUL"
  250. @System "del scripts.exe"
  251.  
  252. @ChDir "..\\support"
  253.  
  254. /* preserve favorites if user got a new copy to replace the old */
  255. @If (@Exists "FAVORITE.DAN")
  256.     @If (@Exists "FAVORITE.ODT")
  257.         @System "del favorite.odt"
  258.     @EndIf          
  259.  
  260.     @If (@Exists "FAVORITE.DAT")
  261.         @System "ren favorite.dat *.odt"
  262.     @EndIf      
  263.     
  264.    @System "ren favorite.dan *.dat"
  265. @EndIf      
  266.  
  267. @ChDir "..\\doscim"
  268.  
  269. /* preserve MNU files (CIM.MNU and OLDCIM.MNU) */
  270.  
  271. @If (25 [= @Option)
  272.     @If (@Exists "NEWCIM.MNU")
  273.     @System "del NEWCIM.MNU"    
  274.     @EndIf
  275.  
  276. @Else
  277.     @If (@Exists "OLDCIM.MNU")
  278.     @System "del OLDCIM.MNU"
  279.     @EndIf      
  280.  
  281.     @If (@Exists "CIM.MNU")
  282.        @System "ren CIM.MNU OLDCIM.MNU" 
  283.     @EndIf
  284.  
  285.     @If (@Exists "NEWCIM.MNU")
  286.     @System "ren NEWCIM.MNU CIM.MNU"    
  287.     @EndIf      
  288.  
  289. @Endif
  290.  
  291. /* preserve CIM EXE files (CIM.EXE and OLDCIM.EXE) */
  292.  
  293. @If (@Exists "OLDCIM.EXE")
  294.     @System "del OLDCIM.EXE"
  295. @EndIf      
  296.  
  297. @If (@Exists "CIM.EXE")
  298.     @System "ren CIM.EXE OLDCIM.EXE" 
  299. @EndIf      
  300.  
  301. /* Create a "yes" response file and unpack the self-extracting exe's */
  302. @System "echo y > yes"
  303. @System "echo y >> yes"
  304. @System "echo y >> yes"
  305. @System "echo y >> yes"
  306. @System "echo y >> yes"
  307. @System "echo y >> yes"
  308. @System "echo y >> yes"
  309. @System "echo y >> yes"
  310. @System "echo y >> yes"
  311. @System "echo y >> yes"
  312. @System "echo y >> yes"
  313. @System "echo y >> yes"
  314. @System "echo y >> yes"
  315. @System "echo y >> yes"
  316. @System "echo y >> yes"
  317.  
  318. @If (@Exists "NEWCIM.EXE")
  319.     /* unpack cim */
  320.     @Display
  321.  
  322.     Installation in progress. Please stand by ...
  323.     @EndDisplay
  324.     @System "newcim < yes > NUL"
  325.     @System "del newcim.exe"
  326. @EndIf
  327.  
  328. @Display
  329.  
  330.     Installation in progress ...
  331. @EndDisplay
  332.  
  333. @If (@Exists "NEWUTIL.EXE")
  334.     @System "NEWUTIL < yes > NUL"
  335.     @System "del NEWUTIL.EXE"
  336. @EndIf
  337.  
  338. @If (@Exists "SIGNUP.EXE")
  339.     @System "SIGNUP < yes > NUL"
  340.     @System "del SIGNUP.EXE"
  341.     @If (@Exists "SIGNUP.DAT")
  342.     @System "del SIGNUP.DAT"
  343.     @EndIf
  344. @EndIf
  345.  
  346. @system "README < yes > NUL"
  347. @system "del README.EXE"
  348. @System "del yes"
  349.  
  350. @System "echo \@echo off > DELOLCIM.BAT"                                                     
  351. @System "echo echo This batch file will delete your old version of the >> DELOLCIM.BAT"
  352. @System "echo echo COMPUSERVE INFORMATION MANAGER software.  If you do >> DELOLCIM.BAT"
  353. @System "echo echo NOT wish to proceed, press CTRL+C or CTRL+BREAK now, >> DELOLCIM.BAT"
  354. @System "echo echo followed by the letter 'Y'. >> DELOLCIM.BAT"
  355. @System "echo echo . >> DELOLCIM.BAT"
  356. @System "echo pause >> DELOLCIM.BAT"
  357. @System "echo del oldcim.exe >> DELOLCIM.BAT"
  358. @System "echo del cim01.ovl >> DELOLCIM.BAT"
  359. @System "echo del cim02.ovl >> DELOLCIM.BAT"
  360. @System "echo del cim.cfg >> DELOLCIM.BAT"
  361. @System "echo del ..\\scripts\\*.ols >> DELOLCIM.BAT"
  362. @System "echo del ..\\scripts\\*.odb >> DELOLCIM.BAT"
  363.  
  364.  
  365. @ChDir ".."
  366.  
  367. /* Create a new CIS.INI if we don't have one already and if an old CIM.CFG */
  368. /* file exists */
  369.  
  370. @If (@Exists "CIM.CFG")
  371.     @if (@Exists "CIS.INI")
  372.     /* do nothing */
  373.     @else
  374.     @System "MAKCMINI > NUL"
  375.     @EndIf
  376. @EndIf
  377. @System "del MAKCMINI.EXE > NUL"
  378.  
  379. @ChDir ".\\scripts"
  380.  
  381. @if (@Exists "CONNECT.OLS")
  382.     @Display
  383.     @scrCls
  384.  
  385.        The latest versions of the CompuServe Information Manager's
  386.        connect script files have been installed into the Script
  387.        subdirectory.  Existing files with the '.SCR' extension were
  388.        detected and have been renamed with the extension '.OLS'.  Any
  389.        existing 'MODEM.DB' file has been renamed with the extension
  390.        '*.ODB'.  If you customized any of the old files, you will
  391.        have to make the same changes to the new scripts and modem
  392.        database.
  393.  
  394.     @scrPause
  395.  
  396.     @EndDisplay
  397. @Endif
  398.  
  399. @ChDir "..\\doscim"
  400.  
  401. @Display
  402.  
  403.     @scrCLS
  404.  
  405.     Installation Completed!
  406.  
  407.     The CompuServe Information Manager has been successfully installed.
  408.  
  409.     You can start the Information Manager from a DOS prompt by changing
  410.     to the @OutDrive:@CIMDIR directory and then typing the command:
  411.  
  412.     CIM
  413.  
  414.     @scrPause
  415.  
  416. @EndDisplay
  417.  
  418. @Goto Finish
  419.  
  420. @EndFinish
  421.  
  422. /*
  423.  * Now we need to handle an abort from the installation, the user has
  424.  * chosen to return to DOS, so we perform the abort and terminate the
  425.  * application.
  426.  */
  427.  
  428. :NoMoveExit
  429. @Display
  430.     @scrCLS
  431.  
  432.    You have chosen to end the installation without converting to the
  433.    new subdirectory organization.  CIM.EXE will now be accessible in
  434.    the DOSCIM subdirectory, which is subordinate to the directory
  435.    where you installed this version of the CompuServe Information
  436.    Manager.
  437.  
  438.    Note to DOSCIM users installing over a version prior to 2.1:
  439.  
  440.     The contents of your "old" Filing Cabinet will not be
  441.     available in this version until you convert to the new
  442.     subdirectory organization.  To do the conversion from DOS,
  443.     run MOVECIM.EXE.
  444.  
  445.     If you file any messages with the newly installed version of
  446.     CIM, RUNNING MOVECIM will overwrite these messages with the 
  447.     contents of your older Filing Cabinet.   For this reason,
  448.     we strongly recommend that you run MOVECIM.EXE before using 
  449.     the new version of CIM. 
  450.  
  451.     @scrPause
  452. @EndDisplay
  453.  
  454.  
  455. :NormalExit
  456. @Display
  457.     @scrCLS
  458.  
  459.     @Name setup completed!
  460.  
  461.     Press ENTER to return to DOS.
  462.  
  463.     @scrPause
  464. @EndDisplay
  465.  
  466.  
  467.  
  468. :Abort
  469. @Exit
  470.  
  471.  
  472. /*
  473.  * Now we need to define the code necessary to handle the various types
  474.  * of installations.  The first is the hard disk installation, where we
  475.  * need to obtain the drive and the directory.  Here we need to verify
  476.  * that enough disk storage exists to complete the installation.
  477.  */
  478.  
  479. :HardDisk
  480.  
  481. @FixedDisk = (1)
  482.  
  483. @GetOutDrive
  484.     @SetColor Black Grey
  485.     @Supress A
  486.     @Supress B
  487.     @scrCLS
  488.  
  489.     The menu below lists all of your hard disk drives.  Select the drive on
  490.     which you want to install the CompuServe Information Manager and press
  491.     ENTER to continue.  If you have only one disk drive press ENTER.
  492.  
  493.     On the next screen you will be prompted for the installation directory.
  494.  
  495.  
  496. @EndOutDrive
  497. @Position 8 1
  498.  
  499. @If (@DiskFree @OutDrive < 2000000)
  500.     @GetOption
  501.     @scrCLS
  502.  
  503.     The CompuServe Information Manager can only be installed on a hard
  504.     drive with 2,000,000 or more bytes of free disk.  You may exit to 
  505.     free more disk space or select another drive to receive the program.
  506.  
  507.     Your drive @OutDrive: has only @DiskFree @OutDrive bytes available.
  508.  
  509.     @SetColor Black Grey
  510.     @Position 14 1
  511.     @Option 90 = " Select New Drive "
  512.     @Option 92 = "  Return to DOS   "
  513.     @EndOption
  514.  
  515.     @If (90 [= @Option)
  516.     @Goto HardDisk
  517.     @Endif
  518.     @Goto Abort
  519. @Else
  520.     @Display
  521.     @scrCLS
  522.     @EndDisplay
  523.  
  524.     @GetSubdir
  525.     The CompuServe Information Manager will be installed on the @OutDrive: drive
  526.     in a subdirectory called DOSCIM, which will be created by default under
  527.     the directory CSERVE (see diagram).  The new directory structure outlined
  528.     below will allow you to use common data contained in the Filing Cabinet,
  529.     In Basket, Address Book, and Session Settings with other CompuServe
  530.     communications software programs such as the CompuServe Information
  531.     Manager for Windows (WinCIM).
  532.     
  533.     C:\CSERVE\
  534.          ├──── DOSCIM          DOS CIM executables & help, Browse menu
  535.          ├──── SCRIPTS         Script files, modem database
  536.          ├──── FCABINET        Filing Cabinet, In Basket, Out Basket
  537.          ├──── SUPPORT         Support files (*.DAT)
  538.          ├──── DOWNLOAD        Default download subdirectory
  539.          └──── GIF             Default GIF download subdirectory
  540.  
  541.     To choose a directory other than CSERVE, edit the path listed below.  
  542.     Be sure to include the complete directory path, omitting the drive name.
  543.  
  544.     @Prompt = " @Name Directory "
  545.     @Position 20 6
  546.     @EndSubdir
  547.  
  548. @DefineVars
  549.     @QString @CIMDIR = "@Subdir\\DOSCIM"
  550. @EndVars
  551.  
  552. @Endif
  553.  
  554.  
  555.  
  556. @If (@GoodSubDir != 1)
  557.     @GetOption
  558.     @scrCLS
  559.  
  560.  
  561.  
  562.     You do not appear to have full read/write access to the drive and 
  563.     directory specified, which is required for installation.
  564.  
  565.     @SetColor Black Grey
  566.     @Position 10 1
  567.     @Option 93 = " Select New Drive "
  568.     @Option 94 = "  Return to DOS   "
  569.     @EndOption
  570.  
  571.     @If (93 [= @Option)
  572.     @Goto HardDisk
  573.     @Endif
  574.     @Goto Abort
  575. @Endif
  576.  
  577.  
  578.  
  579. @Position 10 1
  580. @GetOption
  581.     @scrCLS
  582.  
  583.     The CompuServe Information Manager will be installed 
  584.     under the following directory:
  585.  
  586.                 @OutDrive:@SubDir
  587. @Position 8 1
  588.     @SetColor Black Grey
  589.     @Option 90 = " Continue the Installation "
  590.     @Option 89 = " Change Drive or Directory "
  591.     @Option 91 = "      Return to DOS        "
  592. @EndOption
  593.  
  594. @If (89 [= @Option)
  595.     @Goto HardDisk
  596. @Elseif (91 [= @Option)
  597.     @Goto Abort
  598. @Endif
  599.  
  600. @Call Exists
  601.  
  602. @Return
  603.  
  604. /*
  605.  * Now we need to determine if the user is already a member or if they
  606.  * want to sign up a new account.  If they are already a member we just
  607.  * return.  Otherwise we run CIMUTIL in signup mode.
  608.  */
  609.  
  610. :Signup
  611.  
  612.     @ChDrive @OutDrive
  613.     @ChDir "@CIMDIR"
  614.  
  615.     @Call Wait
  616.     @If (@VideoCard == 'M')
  617.     @Execute "CIMUTIL.EXE", "-NOEMM -SIGNUP -MONO" 
  618.     @Goto Signup_Err1
  619.     @Else
  620.     @Execute "CIMUTIL.EXE", "-NOEMM -SIGNUP"
  621.     @Goto Signup_Err2
  622.     @Endif
  623.  
  624. @Return
  625.  
  626. :MoveFiles
  627.  
  628.     @ChDrive @OutDrive
  629.     @ChDir "@CIMDIR"
  630.  
  631.     @Call Wait
  632.     @Execute "MOVECIM", "@SubDir @SubDir" 
  633.     @Goto Move_Err1
  634.  
  635. @Return
  636.  
  637. :GetInstallDisk
  638.  
  639. @Display
  640. @scrCLS
  641.   @If (@DiskSize @InDrive < 5000000) 
  642.     @If (@Exists "@Indrive:CIM01.LIB")
  643.     @Else
  644.  
  645.     Please re-insert the disk labelled 
  646.     
  647.         Original Diskette 1
  648.     
  649.     into the @InDrive: Drive.
  650.     
  651.     @scrPause
  652.     @EndDisplay
  653.     @goto GetInstallDisk
  654.     @Endif
  655.   @Endif
  656. @Enddisplay
  657. @Return
  658.  
  659. /*
  660.  * Now we need to put together a small routine to display the please
  661.  * wait message for during the time we are spawning to another program.
  662.  * This is because the spawn can take a while.
  663.  */
  664.  
  665. :Wait
  666. @Display
  667. @scrCLS
  668. @Position 10 30 Please Wait ...
  669. @EndDisplay
  670. @Return
  671.  
  672. /*
  673.  * Now we need to determine if the application is already installed
  674.  * or if this is the first time we are installing this application in
  675.  * this directory.
  676.  */
  677.  
  678. :Exists
  679.  
  680. @Display
  681. @scrCLS
  682. @EndDisplay
  683.  
  684. @if (@Exists "@OutDrive:@SubDir\\support\\favorite.dat")
  685.     @GetOption
  686.  
  687.     A previous version of the Favorite Places database exists in your
  688.     support directory.  You can keep this file or replace it with a
  689.     new Favorite Places supplied with this version of CIM.
  690.  
  691.     @SetColor Black Grey
  692.     @Option 20 = "Save Your Favorite Places"
  693.     @Option 21 = " Use New Favorite Places "
  694.     @Option 22 = "     Return to DOS       "
  695.     @EndOption
  696.  
  697.     @if (22 [= @Option)
  698.     @Goto Abort
  699.     @Endif
  700.     @Position 5 1
  701. @Endif
  702.  
  703. @if (@Exists "@OutDrive:@SubDir\\doscim\\cim.mnu")
  704.     @GetOption
  705.     @scrCls
  706.  
  707.     The installation program has detected an existing CIM.MNU file.
  708.     If you are using a custom edition of DOSCIM, be aware that the
  709.     CIM.MNU file may contain customized information and that using
  710.     the CIM.MNU file included with this upgrade will cause this
  711.     customized information to be lost.  If you are not using a custom
  712.     edition of DOSCIM, you should allow the existing CIM.MNU file to
  713.     be replaced.  This will ensure that you obtain any updated
  714.     features controlled by this file.  NOTE: if you do replace your
  715.     existing CIM.MNU file, it will not be lost.  The install program
  716.     will rename it to OLDCIM.MNU so you may be able to recover the
  717.     file if necessary.
  718.  
  719.     @SetColor Black Grey
  720.     @Default (2)
  721.     @Option 25 = "Save Your Browse and Services Menus"
  722.     @Option 26 = " Use New Browse and Services Menus "
  723.     @Option 27 = "          Return to DOS            "
  724.     @EndOption
  725.  
  726.     @if (27 [= @Option)
  727.     @Goto Abort
  728.     @Endif
  729.     @Position 5 1
  730. @Endif
  731.  
  732. @if ("@Online" == "")
  733.  
  734.     @GetOption
  735.     @scrCls
  736.  
  737.     If you are already a CompuServe member and do not plan to create
  738.     a new CompuServe account, you do not need to copy the Signup files to
  739.     your disk drive.  If you would like to become a member, or setup a
  740.     new account, these files are required.
  741.  
  742.     @If (@Exists "@OutDrive:@SubDir\\DOSCIM\\CIM.EXE")
  743.     @Default (2)
  744.     @Endif
  745.  
  746.     @If (@Exists "@OutDrive:@SubDir\\CIM.EXE")
  747.     @Default (2)
  748.     @Endif
  749.  
  750.     @SetColor Black Grey
  751.     @Option 30 = "     Copy the Signup Files    "
  752.     @Option 31 = " Do not Copy the Signup Files "
  753.     @Option 32 = "         Return to DOS         "
  754.     @EndOption
  755.  
  756.     @If (32 [= @Option)
  757.     @Goto Abort
  758.     @Endif
  759.  
  760. @Endif
  761.  
  762. @Return
  763.  
  764. /*
  765.  * Now we are ready to finish up, in this case the user has installed
  766.  * the Information manager.
  767.  */
  768.  
  769. :Finish
  770.  
  771. @if (30 [= @Option)
  772.  
  773.     @GetOption
  774.     @scrCls
  775.  
  776.     If you have not previously accessed CompuServe, you should first
  777.     sign up a new membership.  To do this, you will need your new
  778.     agreement number and serial number which you can find in your
  779.     accompanying documentation.
  780.  
  781.     You can begin the sign up process by selecting "Sign Up a New 
  782.     Membership" below, or by typing
  783.  
  784.         SIGNUP
  785.  
  786.     from a DOS prompt in the @OutDrive:@CIMDIR directory.
  787.  
  788.     @SetColor Black Grey
  789.     @Option 51 = " Sign Up a New Membership "
  790.     @Option 71 = "      Return to DOS       "
  791.     @EndOption
  792.  
  793.     @If (71 [= @Option)
  794.     @Goto NormalExit
  795.     @Elseif (51 [= @Option)
  796.     @Goto Signup
  797.     @Endif
  798.  
  799. @ElseIf (@Exists "@OutDrive:@SubDir\\CIM.EXE")
  800.     @If (@Exists "@OutDrive:@SubDir\\FAVORITE.DAT")
  801.     /* Installed over top an older version of CIM */
  802.     /* Present option of using old data files and filing cabinet */
  803.  
  804.     @GetOption
  805.         @scrCls
  806.  
  807.     The version of the CompuServe Information Manager (CIM) that
  808.     you are installing utilizes a new subdirectory organization.
  809.     This new organization allows other CompuServe communications software
  810.     for DOS machines to share Filing Cabinet, In Basket, Out Basket,
  811.     Connect scripts, and other data files with DOS CIM.
  812.       
  813.     We strongly recommend that you reorganize your DOS CIM files now
  814.     by selecting REORGANIZE FILES below.  Otherwise, you will not be
  815.     able to access the contents of your existing Filing Cabinet, Address
  816.     Book, and other data files.                                                 
  817.  
  818.  
  819.  
  820.         @SetColor Black Grey
  821.         @Option 52 = " Reorganize Files "
  822.         @Option 72 = " End Installation "
  823.     @EndOption
  824.  
  825.     @If (72 [= @Option)
  826.         @Goto NoMoveExit
  827.     @Elseif (52 [= @Option)
  828.         @Goto MoveFiles
  829.     @Endif
  830.  
  831.     @EndIf
  832.  
  833. @ElseIf ("@Online" != "")
  834.     @Display
  835.     @scrCls
  836.  
  837.     If you were using a version of CIM prior to 2.1 and want to use the
  838.     contents of your old Filing Cabinet, Address Book, Favorite Places,
  839.     and other data files, please read the contents of README.TXT in
  840.     the DOSCIM subdirectory.
  841.  
  842.         @scrPause
  843.     @EndDisplay
  844.  
  845. @EndIf
  846.  
  847. @Goto Abort
  848.  
  849. :Signup_Err1
  850.  
  851. @Display
  852.     @scrCls
  853.  
  854.     The install program was unable to run the Signup program directly
  855.     due to your system configuration.
  856.  
  857.     In order to sign up with CompuServe, please enter the following 
  858.     command exactly as it appears at the dos command line:
  859.  
  860.  
  861.     CIMUTIL -SIGNUP -MONO 
  862.  
  863.  
  864.  
  865.     Press ENTER to return to DOS.
  866.  
  867.     @scrPause
  868. @EndDisplay
  869. @Exit
  870.  
  871.  
  872. :Signup_Err2
  873.  
  874. @Display
  875.     @scrCls
  876.  
  877.     The install program was unable to run the Signup program directly
  878.     due to your system configuration.
  879.  
  880.     In order to sign up with CompuServe, please enter the following 
  881.     command exactly as it appears at the dos command line:
  882.  
  883.  
  884.     CIMUTIL -SIGNUP 
  885.  
  886.  
  887.  
  888.     Press ENTER to return to DOS.
  889.  
  890.     @scrPause
  891. @EndDisplay
  892.  
  893. @Exit
  894.  
  895. :Move_Err1
  896.  
  897. @Display
  898.     @scrCls
  899.  
  900.     The install program was unable to run the Movecim program directly
  901.     due to your system configuration.
  902.  
  903.     In order to reorganize your files to use the new directory structure,
  904.     please enter the following command exactly as it appears at the 
  905.     dos command line:
  906.  
  907.  
  908.     MOVECIM @SubDir @SubDir 
  909.  
  910.  
  911.  
  912.     Press ENTER to return to DOS.
  913.  
  914.     @scrPause
  915. @EndDisplay
  916. @Exit
  917.  
  918. 
  919.